
#include <jsoncpp/json/json.h>
#include<iostream>
#include<memory>
#include<string>

void usage(std::string progname)
{
    std::cout<<"Usage: "<<progname<<" port"<<std::endl;
}
int main(int argc,char* argv[])
{
   // if(argc!=2)
//     {
//         usage(argv[0]);
//       // std::cout<<"Usage:./server port"<<std::endl;
//       exit(USAGE_ERR);
//    }
//    std::unique_ptr<Tcpserver> tcpserver =std::make_unique<Tcpserver>(std::stoi(argv[1]));;
//    tcpserver->start();
   
    Json::Value json1;
    json1["name"] = "John"; 
    json1["age"] = 30; 
    json1["city"] = "New York"; 
    Json::FastWriter writer;
    std::string json_string = writer.write(json1);
    std::cout<<json_string<<std::endl;
    return 0;
}